package com.caishi.lkx.exam;

import com.zzw.common.ResultCode;
import lombok.Getter;

/**
 * @author by Janisa
 * @Description:
 * @date 2022/2/14 17:48
 */
public enum ExamResultCode  implements ResultCode {
    //考试模块异常
    addTypeFail(3001, "添加试题类型失败，请检查输入内容"),
    updateTypeFail(3002, "修改试题类型失败，请检查输入内容"),
    deletedTypeFail(3003, "删除试题类型失败，请检查数据"),
    addQuestionFail(3004, "添加试题失败，请检查输入内容"),
    updateQuestionFail(3005, "修改试题失败，请检查输入内容"),
    deletedQuestionFail(3006, "删除试题失败，请检查数据"),
    addQuestionSomeFail(3007, "添加部分试题失败，请检查输入内容"),
    QuestionExist(3008, "内容完全重复,仅修改试题"),
    importQuestionFail(3009, "导入试题失败，请检查内容"),
    deletedColumnFail(3010, "删除栏目失败，请检查数据"),
    examNotExist(3011, "作业/考试不存在"),
    examNotStart(3012, "作业/考试尚未开始"),
    examHasEnded(3013, "作业/考试已结束"),
    notExamMember(3014, "不属于作业/考试参与学员"),
    doExamOnline(3015, "作业/考试参与次数已到上线"),
    paramNotNull(3016, "必要参数不能为空"),
    examHasPaper(3017,"试卷已经被考试使用"),
    examNotHasPaper(3018,"考试未配置试卷"),
    examNotReleased(3019,"考试尚未发布"),
    examAnalysisFail(3020,"考试分析异常"),
    examSubmitException(3021,"考试提交异常"),
    paperHasQuestion(3022,"请不要添加重复试题"),
    ruleExist(3023,"该模块已存在"),
    doExamCheat(3024, "考试作弊不允许再参加考试"),
    paperHasUncorrected(3025,"还有试题未批阅"),
    examHasSubmited(3026,"请不要重复提交"),
    userIdCanNotBeBlank(3027,"用户id不能为空"),
    ruleHasUsed(3028,"改规则已被别的考试引用"),
    addOfflineTestFail(3030,"添加线下考试失败"),
    addReFail(3040, "添加试题关系失败"),
    canNotUpdate(3050, "该试题已正式使用，不可修改"),
    canNotDeleted(3050, "该试题已正式使用，不可删除"),
    copyFaildByCourseId(3061,"根据课程复制考试失败"),
    paperDownloadIsNull(3062,"请选择已批阅的试卷导出"),
    codeUneffective(3101, "code已激活或已退款"),
    productNotExist(3102, "产品不存在"),
    columnNotExist(3103, "产品栏目不存在"),
    codeExist(3104, "code已存在"),
    skuNotExist(3105, "该产品不存在"),
    productCodeNotExist(1605, "激活码不存在"),
    productCodeHasUsed(1606, "激活码已使用"),
    productCodeRefund(1607, "激活码已退款"),
    productCodeFail(1608, "激活失败"),

    paperAlreadySubmit(3301, "试卷已审阅，无需再次提交"),

    clientNotOpen(3400, "客户端平台未开通"),

    ;

    @Getter
    private final int code;
    @Getter
    private final String message;

    ExamResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
